#include <iostream>
#include "httplib.h"
#define DEFAULT_IP "150.158.169.23"
#define DEFAULT_PORT 9090
int main()
{
    httplib::Client client(DEFAULT_IP,DEFAULT_PORT);
    httplib::MultipartFormData data;
    data.name="landscape";
    data.content_type="text/plain";
    data.filename="try.txt";
    data.content="hello world!";
    httplib::MultipartFormDataItems items;
    items.push_back(data);
   auto  rep=client.Post("/upload",items);
    std::cout<<rep->status<<std::endl;
    std::cout<<rep->body<<std::endl;


    return 0;
}
